﻿namespace MShop.Core.DataAccess
{
    public class ConnectionStringProvider : IConnectionStringProvider
    {
        public string ConnectionString { get; private set; }

        public ConnectionStringProvider()
        {
            ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["MShopEntities"].ConnectionString;
        }

        public ConnectionStringProvider(string connectionString)
        {
            ConnectionString = connectionString;
        }
    }
}
